package com.haochang.chunkvod.view.vod.listView.swipemenulistview;

import android.content.Context;
import android.graphics.drawable.Drawable;

/**
 * 右侧滑出的单个item项
 *     @author Yangjie
 *     className SwipeMenuItem
 *     created at  2016/10/20  17:50
 */
public class SwipeMenuItem
{

	private int id;
	private Context mContext;
	private String title;
	private Drawable icon;
	private Drawable background;
	private int titleColor;
	private int titleSize;
	private int width;

	public SwipeMenuItem(Context context)
	{
		mContext = context;
	}

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public int getTitleColor()
	{
		return titleColor;
	}

	public int getTitleSize()
	{
		return titleSize;
	}

	public void setTitleSize(int titleSize)
	{
		this.titleSize = titleSize;
	}

	public void setTitleColor(int titleColor)
	{
		this.titleColor = titleColor;
	}

	public String getTitle()
	{
		return title;
	}

	public void setTitle(String title)
	{
		this.title = title;
	}

	public void setTitle(int resId)
	{
		setTitle(mContext.getString(resId));
	}

	public Drawable getIcon()
	{
		return icon;
	}

	public void setIcon(Drawable icon)
	{
		this.icon = icon;
	}

	public void setIcon(int resId)
	{
		this.icon = mContext.getResources().getDrawable(resId);
	}

	public Drawable getBackground()
	{
		return background;
	}

	public void setBackground(Drawable background)
	{
		this.background = background;
	}

	public void setBackground(int resId)
	{
		this.background = mContext.getResources().getDrawable(resId);
	}

	public int getWidth()
	{
		return width;
	}

	public void setWidth(int width)
	{
		this.width = width;
	}

}
